<?php
//有钱状态
class HasMoney implements State {
    private $game;
    public function __construct(Game $game)
    {
        $this->game = $game;
    }

    //如果投入了25分钱
    public function insertMoney($money){
        echo "请不要再次投钱<br>";
    }
    public function turn() {
        echo "摇动中请稍等";
        $this->game->setState($this->game->getSoldState());
    }
    public function get() {
        echo "请开始摇动";
    }
    public function reject(){
        echo "退款中";
        $this->game->setState($this->game->getNoMoneyState());
    }
}